﻿using System.Windows;
using System.Windows.Controls;

namespace Views
{
    /// <summary>
    /// NoticeEllipse.xaml 的交互逻辑
    /// </summary>
    public partial class NoticeEllipse : Grid
    {
        public NoticeEllipse()
        {
            InitializeComponent();
        }

        public int UnreadNumber
        {
            get { return (int)GetValue(UnreadNumberProperty); }
            set
            {
                SetValue(UnreadNumberProperty, value);
            }
        }

        // Using a DependencyProperty as the backing store for UnreadNumber.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty UnreadNumberProperty =
            DependencyProperty.Register("UnreadNumber", typeof(int), typeof(NoticeEllipse), new PropertyMetadata(0));
    }
}